package com.yuhs.zixing.study.design.pattern.dp002.create.c001.singleton;

/**
 * @description 静态内部类
 * @author: yuhs
 * @date 2022/3/30 下午4:02
 */
public class SingletonDemo007 {
    private SingletonDemo007() {
    }

    public static SingletonDemo007 getInstance() {
        return InnerSingletonDemo007.instance;
    }

    private static class InnerSingletonDemo007 {
        private static final SingletonDemo007 instance = new SingletonDemo007();
    }


}
